package accesory;

import java.util.LinkedList;
import java.util.Queue;
import java.util.Vector;

public class Email {
	private Queue<String> inbox = new LinkedList<String>();
	private Vector<String> messageRead = new Vector<String>();
	
	public void sendMessage(String text){
		this.inbox.add(text);
	}
	
	public void readMessage(){
		String message = this.inbox.poll();
		System.out.println(message);
		this.messageRead.add(message);
	}
	
	public Vector<String >getMessageRead(){
		return this.messageRead;
	}
}
